<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      desktop-file-utils-0.24
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;11.&nbsp;General Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="compface.html" title=
          "Compface-1.5.2">Prev</a>
          <p>
            Compface-1.5.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="graphviz.html" title=
          "Graphviz-2.42.3">Next</a>
          <p>
            Graphviz-2.42.3
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genutils.html" title=
          "Chapter&nbsp;11.&nbsp;General Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="desktop-file-utils" name=
        "desktop-file-utils"></a>desktop-file-utils-0.24
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Desktop File Utils
        </h2>
        <p>
          The <span class="application">Desktop File Utils</span> package
          contains command line utilities for working with <a class="ulink"
          href=
          "http://standards.freedesktop.org/desktop-entry-spec/latest/">Desktop
          entries</a>. These utilities are used by Desktop Environments and
          other applications to manipulate the MIME-types application
          databases and help adhere to the Desktop Entry Specification.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-0.24.tar.xz">
                https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-0.24.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 9364b82e14cfcad881161aa7ea5257ae
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 136 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 1.8 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Desktop File Utils Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="glib2.html" title=
          "GLib-2.62.4">GLib-2.62.4</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../postlfs/emacs.html" title=
          "Emacs-26.3">Emacs-26.3</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/desktop-file-utils">http://wiki.linuxfromscratch.org/blfs/wiki/desktop-file-utils</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Desktop File Utils
        </h2>
        <p>
          Install <span class="application">Desktop File Utils</span> by
          running the following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Desktop File Utils
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm45779273827504" name=
            "idm45779273827504"></a>Configuration Information
          </h4>
          <p>
            The <a class="ulink" href=
            "http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">
            XDG Base Directory</a> specification defines the standard
            locations for applications to place data and configuration files.
            These files can be used, for instance, to define the menu
            structure and menu items in a desktop environment.
          </p>
          <p>
            The default location for configuration files to be installed is
            <code class="filename">/etc/xdg</code>, and the default locations
            for data files are <code class="filename">/usr/local/share</code>
            and <code class="filename">/usr/share</code>. These locations can
            be extended with the environment variables <code class=
            "envar">XDG_CONFIG_DIRS</code> and <code class=
            "envar">XDG_DATA_DIRS</code>, respectively. The <span class=
            "application">GNOME</span>, <span class="application">KDE</span>
            and <span class="application">XFCE</span> environments respect
            these settings.
          </p>
          <p>
            When a package installs a <code class="filename">.desktop</code>
            file to a location in one of the base data directories, the
            database that maps MIME-types to available applications can be
            updated. For instance, the cache file at <code class=
            "filename">/usr/share/applications/mimeinfo.cache</code> can be
            rebuilt by executing the following command as the <code class=
            "systemitem">root</code> user:
          </p>
          <pre class="root">
<kbd class="command">install -vdm755 /usr/share/applications &amp;&amp;
update-desktop-database /usr/share/applications</kbd>
</pre>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">desktop-file-edit, desktop-file-install,
              desktop-file-validate and update-desktop-database</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="desktop-file-edit" name=
                    "desktop-file-edit"></a><span class="term"><span class=
                    "command"><strong>desktop-file-edit</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to modify an existing desktop file entry.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="desktop-file-install" name=
                    "desktop-file-install"></a><span class=
                    "term"><span class="command"><strong>desktop-file-install</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to install a new desktop file entry. It is also
                    used to rebuild or modify the MIME-types application
                    database.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="desktop-file-validate" name=
                    "desktop-file-validate"></a><span class=
                    "term"><span class=
                    "command"><strong>desktop-file-validate</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to verify the integrity of a desktop file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="update-desktop-database" name=
                    "update-desktop-database"></a><span class=
                    "term"><span class=
                    "command"><strong>update-desktop-database</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to update the MIME-types application database.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 12:03:00 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="compface.html" title=
          "Compface-1.5.2">Prev</a>
          <p>
            Compface-1.5.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="graphviz.html" title=
          "Graphviz-2.42.3">Next</a>
          <p>
            Graphviz-2.42.3
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genutils.html" title=
          "Chapter&nbsp;11.&nbsp;General Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
